package zj.p20;

public class P04 {
	private static final int N = 100;
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		for (int a = 0; a <= N; a++) {
			for (int b = 0; b <= N; b++) {
				for (int c = 0; c <= N; c++) {
					if (a + b + c == N 
						&& 3 * a + 2 * b + c / 2 == N
						&& c % 2 == 0)
						System.out.println(String.format("%d %d %d", a,b,c));
						//System.out.println(a + " " + b + " " + c);

				}
			}
		}

	}

}
